const app = getApp()

Page({
    data: {
        src: ''
    },

    toCropper() {
        wx.navigateTo({
            url: `/pages/cropper/cropper?imgSrc=${this.data.src}`
        })

    },

    onShow() {
        if (app.globalData.imgSrc) {
            this.setData({
                src: app.globalData.imgSrc
            })
        }
    }
})